<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
    // NOTE: all cache times are in minutes.
   $host = $_SERVER['HTTP_HOST'];

    switch($host) {
        case 'local.trivuinc.com':
            define('ENV_NAME','local');
            define('ERROR_LEVEL',E_ALL);
            define('BASEURL','http://local.trivuinc.com/'); 
            define('DOMAIN', 'local.trivuinc.com'); 
	    define('WT_DOMAIN', 'local.trivuinc.com');
            define('PROFILER',TRUE);
            define('LOG_THRESHOLD',0);
            define('CACHE_TIME_1_DAY', 0);
            define('CACHE_TIME_1_WEEK', 0);
            define('CACHE_TIME_4_HOURS', 0);
            define('FORM_POST_QUADTAG','http://f.fobbel.com/ads2/r?n=203;c=1134;s=3214;x=7936;f=20102770;u=j;z=TIMESTAMP');
            define('FORM_POST_URL','http://leadform.quinstage.com/coreg/hsleadcapture');            
            break;    
        case strstr($host, 'test.trivuin.com'):
            define('ENV_NAME','dev');
            define('ERROR_LEVEL',E_ALL);
            define('BASEURL','http://test.trivuinc.com/');
            define('DOMAIN', 'test.trivuinc.com');
			define('WT_DOMAIN', 'test.trivuinc.com');
            define('PROFILER',FALSE);
            define('LOG_THRESHOLD',0);    
            define('CACHE_TIME_1_DAY', 0);
            define('CACHE_TIME_1_WEEK', 0);
            define('CACHE_TIME_4_HOURS', 0);
            define('FORM_POST_QUADTAG','http://f.fobbel.com/ads2/r?n=203;c=1134;s=3214;x=7936;f=20102770;u=j;z=TIMESTAMP');
            define('FORM_POST_URL','http://leadform.quinstage.com/coreg/hsleadcapture');
            break;
        default:
            define('ENV_NAME','prod');
            define('ERROR_LEVEL',0);
            define('BASEURL','http://www.trivuinc.com/');
            define('DOMAIN', 'www.trivuinc.com');
			define('WT_DOMAIN', 'trivuinc.com');
            define('ADMIN_EMAIL', 'btovar@quinstreet.com, homeownernet@homeownernet.com');            
            define('PROFILER',FALSE);
            define('LOG_THRESHOLD',0);
            define('CACHE_TIME_1_DAY', 60*24);
            define('CACHE_TIME_1_WEEK', 60*24*7);
            define('CACHE_TIME_4_HOURS', 60*4);
            define('FORM_POST_QUADTAG','http://p.puokie.com/cgi/r?;n=203;c=292773;s=5453;x=7936;f=200706131343090;u=j;z=TIMESTAMP');
            define('FORM_POST_URL','http://leadpost.net/coreg/hsleadcapture');
            break;
    } 
    error_reporting(ERROR_LEVEL);
    if(ERROR_LEVEL === 0)
    {
        ini_set('display_errors','0');
    }
    else
    {
        ini_set('display_errors','1');
    }
    //require_once('db_settings.php'); 
    //set_db_settings(ENV_NAME);    
    // global session id for webtrends revenue tracking
    require_once('click_cookie.php');
    
   
?>
